package cn.gemiman.daoyi.module.iot.dal.dataobject.equipmentmsg;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.gemiman.daoyi.framework.mybatis.core.dataobject.BaseDO;

/**
 * 设备消息 DO
 *
 * @author 道一源码
 */
@TableName("iot_equipment_msg")
@KeySequence("iot_equipment_msg_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EquipmentMsgDO extends BaseDO {

    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 设备编号
     */
    private Long equipmentId;

    // @Schema(description = "设备名称")
    private String equipmentName;

    // @Schema(description = "消息名称")
    private String msgName;

    /**
     * 消息键
     */
    private String msgKey;
    /**
     * 消息值
     */
    private String msgValue;
    /**
     * 报警状态
     *
     * 枚举 {@link TODO equipment_msg_alarm_status 对应的类}
     */
    private Integer alarmStatus;
    /**
     * 消息时间
     */
    private LocalDateTime msgTime;

}
